package com.xian.rooms.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.xian.rooms.mapper.HotelRoomsMapper;
import com.xian.rooms.domain.HotelRoomsir;
import com.xian.rooms.service.IHotelRoomsService;

/**
 * 房间信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-04-10
 */
@Service
public class HotelRoomsServiceImpl implements IHotelRoomsService 
{
    @Autowired
    private HotelRoomsMapper hotelRoomsMapper;

    /**
     * 查询房间信息
     * 
     * @param roomId 房间信息主键
     * @return 房间信息
     */
    @Override
    public HotelRoomsir selectHotelRoomsByRoomId(Long roomId)
    {
        return hotelRoomsMapper.selectHotelRoomsByRoomId(roomId);
    }

    /**
     * 查询房间信息列表
     * 
     * @param hotelRoomsir 房间信息
     * @return 房间信息
     */
    @Override
    public List<HotelRoomsir> selectHotelRoomsList(HotelRoomsir hotelRoomsir)
    {
        return hotelRoomsMapper.selectHotelRoomsList(hotelRoomsir);
    }

    /**
     * 新增房间信息
     * 
     * @param hotelRoomsir 房间信息
     * @return 结果
     */
    @Override
    public int insertHotelRooms(HotelRoomsir hotelRoomsir)
    {
        return hotelRoomsMapper.insertHotelRooms(hotelRoomsir);
    }

    /**
     * 修改房间信息
     * 
     * @param hotelRoomsir 房间信息
     * @return 结果
     */
    @Override
    public int updateHotelRooms(HotelRoomsir hotelRoomsir)
    {
        return hotelRoomsMapper.updateHotelRooms(hotelRoomsir);
    }

    /**
     * 批量删除房间信息
     * 
     * @param roomIds 需要删除的房间信息主键
     * @return 结果
     */
    @Override
    public int deleteHotelRoomsByRoomIds(Long[] roomIds)
    {
        return hotelRoomsMapper.deleteHotelRoomsByRoomIds(roomIds);
    }

    /**
     * 删除房间信息信息
     * 
     * @param roomId 房间信息主键
     * @return 结果
     */
    @Override
    public int deleteHotelRoomsByRoomId(Long roomId)
    {
        return hotelRoomsMapper.deleteHotelRoomsByRoomId(roomId);
    }
}
